	/*Casts spell and does quick Rune Checks
	*@Param -definition
	*SpellId -The id for the spell (EX: SPELL_HUMIDIFY)
	*delayTime -The time for the spell to be cast
	*bankCloce -checks if bank is open and closes if this is true
	*runes -Runes required for spell
	*runesCheck -True to check inventory for runes
	*/
	private void castSpell(int SpellId, int delayTime, boolean bankClose,
			int runes, boolean runesCheck) {
		boolean needRunes = false; // rune that is needed to do spell

		// checks if banks open and closes if true
		if (bankClose == true)
			if (Bank.isOpen())
				Bank.close();

		// checks if you have the needed rune for the spell
		if (runesCheck == true) {
			if (Inventory.contains(runes)) { // has runes
				needRunes = true;
			} else
				needRunes = false;
		} else
			// if its not supposed to check for runes, set needRunes true
			needRunes = true;

		// if you have the runes, or checking is false
		if (needRunes == true) {
			if (Players.getLocal().getAnimation() == -1) // checks if your not
															// idle
				Magic.castSpell(SpellId);// casts spell using the ID
			else
				sleep(Random.nextInt(delayTime / 2, delayTime * 2));
			// sleeps for a random number between half and twice the delay
			// amount
		} else {
			log("Doesnt have the runes");
			stop();
		}
	}